package com.ruoyi.system.domain.fx;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 标签管理对象 fx_tag
 *
 * @author ruoyi
 * @date 2024-07-23
 */
public class FxTag extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String tagName;

    /**
     * 标签图片
     */
    @Excel(name = "标签图片")
    private String tagImg;

    /**
     * 背景图片
     */
    @Excel(name = "背景图片")
    private String bgImg;

    /**
     * 描述
     */
    @Excel(name = "描述")
    private String tagDescribe;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /**
     * 标签类型
     */
    @Excel(name = "标签类型")
    private String type;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagImg(String tagImg) {
        this.tagImg = tagImg;
    }

    public String getTagImg() {
        return tagImg;
    }

    public String getBgImg() {
        return bgImg;
    }

    public void setBgImg(String bgImg) {
        this.bgImg = bgImg;
    }

    public void setTagDescribe(String tagDescribe) {
        this.tagDescribe = tagDescribe;
    }

    public String getTagDescribe() {
        return tagDescribe;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("tagName", getTagName())
                .append("tagImg", getTagImg())
                .append("bgImg", getBgImg())
                .append("tagDescribe", getTagDescribe())
                .append("remark", getRemark())
                .append("createDate", getCreateDate())
                .append("type", getType())
                .toString();
    }
}
